package com.itheima.domain;

public class Emp {
    Integer id;
    String ename;
    String gender;
    Double salary;
    String address;
    Integer dept_id;

    public Emp() {
    }

    public Emp(Integer id, String ename, String gender, Double salary, String address, Integer dept_id) {
        this.id = id;
        this.ename = ename;
        this.gender = gender;
        this.salary = salary;
        this.address = address;
        this.dept_id = dept_id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getEname() {
        return ename;
    }

    public void setEname(String ename) {
        this.ename = ename;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public Double getSalary() {
        return salary;
    }

    public void setSalary(Double salary) {
        this.salary = salary;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getDept_id() {
        return dept_id;
    }

    public void setDept_id(Integer dept_id) {
        this.dept_id = dept_id;
    }

    @Override
    public String toString() {
        return "Emp{" +
                "id=" + id +
                ", ename='" + ename + '\'' +
                ", gender='" + gender + '\'' +
                ", salary=" + salary +
                ", address='" + address + '\'' +
                ", dept_id=" + dept_id +
                '}';
    }
}
